import axios from 'axios'
class Service {
  mock
  static get isProduction () {
    return process.env.NODE_ENV === 'production'
  }
  constructor (args = {}) {
    const {mock = false} = args
    this.mock = mock
  }
  static fetch (url, data, config) {
    return axios.post(url, data, config)
  }
}
export default Service
